Hi,
I trying to add a menu bar to my main widget.
The reslut is, that the menus (like file menu) apear and work ok, but
the menubar it self is not being refreshed at all.
I looked at all the documantation I could find, and I cant find what I
am doing wrong...
When my main widget first apears, the area of the menu bar will be
full with what ever is behind the main widget at creation time
(meaning it had no paint event), and will not refresh.
The menus, are responding and visible as expected.
The code below is only the code needed for the display of hte menu bar
and menus that are in it with out the slot connections...)
Can you guys have clue?
Thanks
LutCreator::LutCreator(QWidget *parent, const char *name) :
BaseDlg(parent, name)
{
m_fileMenu = new QPopupMenu;
m_LUTmenu = new QPopupMenu;
m_menuBar = new QMenuBar(this);
m_LUTmenu->insertItem("Lut");
m_menuBar->insertItem("File",m_fileMenu);
m_fileMenu->insertItem("Load Lut");
m_fileMenu->insertItem("Save Lut");
m_menuBar->insertItem("LUT",m_LUTmenu);
[snip]
} 9 2348
"me" <dk**@hotmail.com> wrote in message
news:9d**************************@posting.google.c om... Hi,
I trying to add a menu bar to my main widget. The reslut is, that the menus (like file menu) apear and work ok, but the menubar it self is not being refreshed at all. I looked at all the documantation I could find, and I cant find what I am doing wrong...
....
WTF are QMenuBar widget?
--
-Ashish
--------------------------------------------------------------------------
Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual! http://www.123ashish.com http://www.softwarefreaks.com
"Asle Frantzen" <as**@cocacoliker.com> wrote in message
news:Mn******************@news4.e.nsc.no... Ashish wrote: WTF are QMenuBar widget?
Hmm, haven't anyone here heard about the Qt-library?
It is still off-topic. Just because its open source, Linux or whatever
doesnt make it a part of the standard C++. The OP should be redirected to an
appropriate newsgroup rather than answering his questions here. (I am sorry
I didnt redirect him in the first place, I am too lazy)
--
-Ashish
--------------------------------------------------------------------------
Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual! http://www.123ashish.com http://www.softwarefreaks.com
Ashish wrote: It is still off-topic. Just because its open source, Linux or whatever doesnt make it a part of the standard C++. The OP should be redirected to an appropriate newsgroup rather than answering his questions here. (I am sorry I didnt redirect him in the first place, I am too lazy)
That might be. And please let me know if you know of some
other newsgroup that discusses the use of Qt in C++, because
I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik
has been created with it, it's platform-independent...)
..a
Asle Frantzen wrote: Ashish wrote:
It is still off-topic. Just because its open source, Linux or whatever doesnt make it a part of the standard C++. The OP should be redirected to an appropriate newsgroup rather than answering his questions here. (I am sorry I didnt redirect him in the first place, I am too lazy)
That might be. And please let me know if you know of some other newsgroup that discusses the use of Qt in C++, because I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik has been created with it, it's platform-independent...)
.a
Sorry, but you are wrong. Just because something is compiled on
two platforms doesn't make it platform independent.
Let us examine a tape drive system. The tape drive system doesn't
have any screen or video connected to it. Yet it can still
support the C++ language. I've worked on systems that did.
However, it won't support Qt since it doesn't have a display.
Let us look at laser printers. Laser printers don't have video
screens (at least the cheaper ones). Those laser printers can
support standard C++. What good is supporting a Windowing
U/I when there is no device for displaying the information?
Just to let you know, Workstations and PCs are not the only
platforms in existance. Not all platforms have video displays.
Search the C++ and C newsgroups for my rants on this issue.
I believe also that Shiva has it in the Welcome.txt listed below.
--
Thomas Matthews
Embedded Systems Software Engineer
C++ newsgroup welcome message: http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.html
Other sites: http://www.josuttis.com -- C++ STL Library book
Asle Frantzen wrote: Ashish wrote:
It is still off-topic. Just because its open source, Linux or whatever doesnt make it a part of the standard C++. The OP should be redirected to an appropriate newsgroup rather than answering his questions here. (I am sorry I didnt redirect him in the first place, I am too lazy)
That might be. And please let me know if you know of some other newsgroup that discusses the use of Qt in C++, because I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik has been created with it, it's platform-independent...)
There are no Qt newsgroups -- at least, none that I know of -- but there
are Qt mailing lists. IOW, you email your question to other people who
also subscribe to the mailing list, and then hope that someone responds
to your email. For more info, visit the Qt web site http://www.trolltech.com/
click on the "Developer" link, click on the "Mailing Lists" link, and
then read up on the various mailing lists to learn which list(s) are
appropriate for your needs.
--
Jim
To reply by email, remove "link" and change "now.here" to "yahoo"
jfischer_link5809{at}now.here.com
Jim Fischer wrote: Asle Frantzen wrote: Ashish wrote:
It is still off-topic. Just because its open source, Linux or whatever doesnt make it a part of the standard C++. The OP should be redirected to an appropriate newsgroup rather than answering his questions here. (I am sorry I didnt redirect him in the first place, I am too lazy)
That might be. And please let me know if you know of some other newsgroup that discusses the use of Qt in C++, because I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik has been created with it, it's platform-independent...)
There are no Qt newsgroups -- at least, none that I know of -- but there
nntp.trolltech.com :) but I think is read only
are Qt mailing lists. IOW, you email your question to other people who also subscribe to the mailing list, and then hope that someone responds to your email. For more info, visit the Qt web site
http://www.trolltech.com/
click on the "Developer" link, click on the "Mailing Lists" link, and then read up on the various mailing lists to learn which list(s) are appropriate for your needs.
"Filipe Sousa" <fi*************@alunos.ipb.pt> wrote in message
news:10***************@jubilee.esoterica.pt... Jim Fischer wrote: There are no Qt newsgroups -- at least, none that I know of
nntp.trolltech.com :) but I think is read only
You can post if you register a username and password: http://www.trolltech.com/newsapply.html
--
Russell Hanneken rh*******@pobox.com
Before everything, I jsut would like to thank everyone who answered.
I am sorry this post is off topic, but as siad here, I couldnt find
any specific newsgroups that dealt with QT, and since I have seen some
QT questions in this group, I thought it was Ok, so sorry about that.
However Thomas, from the way you wrote about QT, it seams to me you
know nothing about it, yet you alow your self to make very wide
asumptions on it.
My sugestion - and this is in a friedly tone, dont talk about things
you dont know anything about.
The examples you gave about the drive system or others that dont use
displays - and THATS why they will not supports QT is absolute
nonsense.
Qt is just a warpper, and as far as I know, it self, IS in standard
C++.
It is true, that some QT mechanisms are not C++ like signals and
slots, but their implementation is very much C++.
I dont understand exactly what do you mean when you say that a device
"supports c++"...
No device supports a specific higher language, only machine code.
C++ is human language - not machine language.
It might be that a device will work with only a sertain
compiler-linker, that knows exactly the code "foramt" for that device,
and then the language is compiler specific - maybe you meant that.
In principal, there should be no reason to stop you from writting
drivers or any other sort of code for any device, be it using QT MFC
or any other library or language... with or without display as I have
done more then one time.
All the best
Mikledet.
Thomas Matthews <th*************@sbcglobal.net> wrote in message news:<3E**************@sbcglobal.net>... Asle Frantzen wrote: Ashish wrote:
It is still off-topic. Just because its open source, Linux or whatever doesnt make it a part of the standard C++. The OP should be redirected to an appropriate newsgroup rather than answering his questions here. (I am sorry I didnt redirect him in the first place, I am too lazy)
That might be. And please let me know if you know of some other newsgroup that discusses the use of Qt in C++, because I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik has been created with it, it's platform-independent...)
.a
Sorry, but you are wrong. Just because something is compiled on two platforms doesn't make it platform independent.
Let us examine a tape drive system. The tape drive system doesn't have any screen or video connected to it. Yet it can still support the C++ language. I've worked on systems that did. However, it won't support Qt since it doesn't have a display.
Let us look at laser printers. Laser printers don't have video screens (at least the cheaper ones). Those laser printers can support standard C++. What good is supporting a Windowing U/I when there is no device for displaying the information?
Just to let you know, Workstations and PCs are not the only platforms in existance. Not all platforms have video displays.
Search the C++ and C newsgroups for my rants on this issue. I believe also that Shiva has it in the Welcome.txt listed below. -- Thomas Matthews Embedded Systems Software Engineer
C++ newsgroup welcome message: http://www.slack.net/~shiva/welcome.txt C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.html Other sites: http://www.josuttis.com -- C++ STL Library book This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Erwan Adam |
last post by:
Hi all,
I try to introduce tooltips in my application written
in PyQt (more precisly, in the menubar of my application)
but I can't find a way to get the QRect instance
associated to a QMenuBar...
|
by: Stevey |
last post by:
I have the following XML file...
<?xml version="1.0"?>
<animals>
<animal>
<name>Tiger</name>
<questions>
<question index="0">true</question>
<question index="1">true</question>
</questions>
|
by: nospam |
last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types,
so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask...
|
by: Ekqvist Marko |
last post by:
Hi,
I have one Access database table including questions and answers. Now
I need to give answer id automatically to questionID column. But I
don't know how it is best (fastest) to do?
table...
|
by: glenn |
last post by:
I am use to programming in php and the way session and post vars are past
from fields on one page through to the post page automatically where I can
get to their values easily to write to a...
|
by: Rider |
last post by:
Hi, simple(?) question about asp.net configuration..
I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm
first start application the follow message shown.
=========
Server...
|
by: Jeff |
last post by:
In the function below, can size ever be 0 (zero)?
char *clc_strdup(const char * CLC_RESTRICT s)
{
size_t size;
char *p;
clc_assert_not_null(clc_strdup, s);
size = strlen(s) + 1;
|
by: spibou |
last post by:
In the statement "a *= expression" is expression assumed to be
parenthesized ? For example if I write "a *= b+c" is this the same
as "a = a * (b+c)" or "a = a * b+c" ?
|
by: Allan Ebdrup |
last post by:
Hi,
I'm trying to render a Matrix question in my ASP.Net 2.0 page, A matrix
question is a question where you have several options that can all be rated
according to several possible ratings (from...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |