Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • [Solved]Very strong error in QSplitter

    6
    0 Votes
    6 Posts
    4k Views
    R
    If i do it i get second result agter compile, thats why i get first result after compile And i find my how i can do it: @ splitter->setStyleSheet("QSplitter::handle{image: url(:/images/Resources/Images/slpitter.png);}" "QSplitter { width: 5px; }"); //splitter->setFixedWidth(3);@ the problem turned so easy :) Many thanks for your help!!
  • Using a set of libraries

    5
    0 Votes
    5 Posts
    3k Views
    E
    Thanks again, after reading the link you posted I did exactly that, then cleaned, qmade and rebuilt, but it didn't solve the problem.
  • Can QWidgets be placed into a list view?

    11
    0 Votes
    11 Posts
    6k Views
    J
    I want to pass a QFrame holding many children (lists, buttons, labels, icons). What I want is similar to a StackedLayout in function, but with a slide view in appearance, switching from one page to another.
  • Searching for a particular keyword in the each QList entry.

    2
    0 Votes
    2 Posts
    2k Views
    K
    If you would use "QStringList":http://developer.qt.nokia.com/doc/qt-4.7/qstringlist.html directly, there are methods for filtering available. Look for filter.
  • Problem with QFile and *.qrc

    10
    0 Votes
    10 Posts
    8k Views
    G
    Hm. I get that indirectly from @ Q_INIT_RESOURCE( name ) @ If you use the same name twice, I would not expect two different resources to be initialized ;-) But you're right, it should be stated explicitly. I've added doc notes to [[Doc:QDir]] (for the Q_INIT_RESOURCE macro) and [[Doc:resources]].
  • [Split] Debug vs. Release

    10
    0 Votes
    10 Posts
    9k Views
    A
    mlong, Gefolf can you may be see my small example ( last post in thread: http://developer.qt.nokia.com/forums/viewthread/9300/ ) and say, what I do wrong? Where can bug be??? I cann't find myself, what I do wrong in this(small) example too.... I think, that it is a compiler problem or I'm too stupid to find my bug.
  • [SOLVED] Can I return NULL in QItemDelegate::createEditor(...) ?

    4
    0 Votes
    4 Posts
    4k Views
    G
    You can safely return a null pointer (NULL or 0). Qt handles that case and your application will not crash.
  • [solved] Http example from Qt giving strange error! n00b question!

    2
    0 Votes
    2 Posts
    3k Views
    P
    Oh shuut! I forgot to add the line QT += network to my project file hence this error was cropping up. Now everyhting seems to be running fine, except that I don't see any file that was downloaded.
  • QString as parameter in switch case

    2
    0 Votes
    2 Posts
    14k Views
    D
    You can use an string as the condition of switch statement, as long as the string class provide an operator such as: bq. operator int() const But, you cannot code something like this!! bq. case "A": From ISO C++ 6.4: bq. The value of a condition that is an initialized declaration in a switch statement is the value of the declared variable if it has integral or enumeration type, or of that variable implicitly converted to integral or enumeration type otherwise. From ISO C++ 6.4.2 bq. Any statement within the switch statement can be labeled with one or more case labels as follows: case constant-expression : where the constant-expression shall be an integral constant.
  • QTableView directly shows QComboBox in one column

    2
    0 Votes
    2 Posts
    3k Views
    G
    I'm not sure what you want to achieve. If you need the combo boxes permanently, try "QAbstractItemView::setIndexWidget() ":http://doc.qt.nokia.com/4.7/qabstractitemview.html#setIndexWidget
  • [Solved] Porting from Qt3 to Qt4 - qt3porting.xml file not found

    3
    0 Votes
    3 Posts
    5k Views
    B
    Thanks, I got the qt3to4 part working now. However, now I'm stuck on porting the .ui files to Qt4. When I attempt to execute the line "uic3 -convert mainwindow.ui > mainwindow.ui" the error message is similar to before: "Error: Could not find rules file: q3porting.xml" The only problem is that I can't tell the uic3 program where the rules file is. Is there another way around this? Edit: Never mind, I uninstalled Qt and built it from source instead. Took about 10 hours for me but at least I got the files in the right place now! Thanks for telling me about that gitorious thing bro.
  • Span header

    2
    0 Votes
    2 Posts
    2k Views
    P
    Deeply, I create a QTableView and it's model. Also I create my header subclass QHeaderView and it's own model. Both of the model have their own headerData().I just suspect whether the problem are from there. any suggestions?
  • Get outlook mails automagically

    6
    0 Votes
    6 Posts
    3k Views
    D
    I want indeed a Qt app that is able to read from Outlook/"inbox" and report some of these mails in the app. To say all, the idea behind is an app that keeps my allocated tasks I received through mails tagged with my name in the email's body message like "assigned to: myname" and put them in the application <left Todo> task list as a reminder for me. Besides, this let me put the time needed to do each tasks and report all at the end.
  • Qt Cryptographic Architecture

    3
    0 Votes
    3 Posts
    4k Views
    T
    OK. I need advice, how to write my project. Using basic Qt library or with QXMPP. [quote author="loladiro" date="1315496170"]Could you be more specific, what you need help with (e.g. how to generate/transmit/encrypt or sth. like that)? Because only then can we offer you advice that really helps.[/quote]
  • [SOLVED] Problem with mainLayout of Dialog.

    6
    0 Votes
    6 Posts
    3k Views
    A
    On a side-note. The word is "Browse", not "Browze". You also might want to check if you really want to say "Nami".
  • Problem with menuoptions

    2
    0 Votes
    2 Posts
    2k Views
    F
    QtSDK/Demos/4.7/undo/ is the example of what you need.
  • Linker error after upgrading Firebird and recompiling Qt

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Stacked and TabWidget

    5
    0 Votes
    5 Posts
    3k Views
    K
    [quote author="Andre" date="1315470086"]Sounds like you are building some home brewn nested tab structure. In UI terms, even without seeing it, that is probably not a good idea. Try to see if you can think up a different solution for your UI that is less complicated to use. [/quote] I thought that was a simple beginner thing.
  • SetAlignment for QStackedLayout

    4
    0 Votes
    4 Posts
    4k Views
    A
    Using QStackedWidget would have worked just fine, you only needed to set a layout on each of the pages in it. That would have centered your label just fine.
  • QFtp and empty files

    6
    0 Votes
    6 Posts
    4k Views
    P
    Did not get any messages when every error signal had it's own slot with debug output. Yes, i wrote some kind of wrapper around QFtp which has it's internal queue and invokes next QFtp::get() only when there are no any pending operations. Hmm. I wonder where my eyes were or what i did wrong but after a few test it seems that everything is fine. Every queued file was completely downloaded. The only question i have now is here: http://developer.qt.nokia.com/forums/viewthread/9474/ Maybe you could take a look at it?