Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How to insert two List of QStandardItem into QStandardItemModel?

    2
    0 Votes
    2 Posts
    3k Views
    D
    Of course two calls to insertColumn will insert two different columns; use a foreach + appendRow.
  • 0 Votes
    5 Posts
    3k Views
    U
    found the solution based on the examples in Qt directory , thanks
  • [SOLVED] QTreeView won't display the model contents

    10
    0 Votes
    10 Posts
    7k Views
    L
    Thanks to you all. I think I got it :)
  • [SOLVED] qt creator tips

    3
    0 Votes
    3 Posts
    2k Views
    L
    It's still there, just a little bit smaller.
  • How can i get QAction from QMenu throught index

    3
    0 Votes
    3 Posts
    15k Views
    R
    Hi, Ruzik. Try "this":http://doc.qt.nokia.com/4.7/qwidget.html#actions @QList<QAction*> actionList = yourMenu->actions() if (!actionList.empty()) { QAction *action = actionList.at(index); //bla bla } @ Update: Franzk is faster :-)
  • QTreeWidgetItems and gradients, is it possible?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QList Widget Getting text from Selected Index

    3
    0 Votes
    3 Posts
    9k Views
    A
    Hi, I have done the same thing this week. Here's what i did - @ for (int list=0; list < listmodel->rowCount(); list++) { QStandardItem *newitem= listmodel->item(list); if(newitem->checkState() == 2) //For all checked items { // store it into your variable using newitem->text() } } @ There are several ways of doing it, this is one. Hope this helps.
  • [SOLVED] QFile open error

    8
    0 Votes
    8 Posts
    28k Views
    M
    Sometimes it's the little things that bite you! Glad to help!
  • Third party 3d viewer with Java bindings

    2
    0 Votes
    2 Posts
    2k Views
    L
    It is possible to use the Java Native Interface to access Java from C++. I have no experience with that, however, and I don't know if and how you can integrate it with the GUI.
  • Chicken and Egg problem with Qt's QWidgets

    2
    0 Votes
    2 Posts
    2k Views
    L
    Maybe calling "adjustSize":http://doc.qt.nokia.com/4.7/qwidget.html#adjustSize on your main widget could help you.
  • [Solved] Help with regular expressions

    4
    0 Votes
    4 Posts
    3k Views
    M
    Glad to help!
  • Updating qt on linux debian 6

    3
    0 Votes
    3 Posts
    4k Views
    T
    Find debian repos with the new binaries, backport them if required. Try our binary packages instead. Get the source and build Qt and Creator yourself
  • 0 Votes
    14 Posts
    7k Views
    M
    You're probably going to be better off, then, using an XML file. That way you have complete control of what you store and how you store it. If you're working outside the parameters of the normal behavior of the QSettings class, then the extra work to wrap data around your own storage system would probably be worth the effort. You can always mimic the appropriate subset of the QSettings API, if you find it convenient to use in your code (as far as loading and saving values.)
  • 0 Votes
    21 Posts
    11k Views
    G
    [quote author="brucewuu" date="1309959197"]hi Volker , I also meet the same problem as the following link http://svn.netlabs.org/qt4/ticket/201 do you have some solution for that ?thanks ~~[/quote] That's out of scope for me. I don't know the internal workings for the OS/2 port, sorry.
  • QStackedWidget: Bind to combo box?

    4
    0 Votes
    4 Posts
    4k Views
    G
    No, there is no standard way to do this. You will have to connect to a signal of the combobox and call some slot on the stacked widget. As an outline: "QStackedWidget::addWidget() ":http://doc.qt.nokia.com/4.7/qstackedwidget.html#addWidget returns an int - store that call "QComboBox::addItem() ":http://doc.qt.nokia.com/4.7/qcombobox.html#addItem and use the stored int for the user data of the new item connect a slot of your own to the signal "activated(int) ":http://doc.qt.nokia.com/4.7/qcombobox.html#activated of your combo box retrieve the user data (= index in stacked widget) with "QComboBox::itemData() ":http://doc.qt.nokia.com/4.7/qcombobox.html#itemData use the int to switch to the desired widget using "QStackedWidget::setCurrentIndex() ":http://doc.qt.nokia.com/4.7/qstackedwidget.html#currentIndex-prop
  • [SOLVED] Getting the OUT of a MySQL stored procedure?

    5
    0 Votes
    5 Posts
    10k Views
    R
    No problem! I looked for the "solved" button like at the Java forums. I didn't realize I had to edit the title manually.
  • 0 Votes
    4 Posts
    3k Views
    EddyE
    No I don't think so. Afaik Qt Designer existed before Qt Solutions. But I'm not sure. You could check it easily by comparing the sources.
  • Appending Items to QListView

    6
    0 Votes
    6 Posts
    18k Views
    V
    Thank you very much for the input, I am going check it out now!
  • Help with QTextEdit.

    28
    0 Votes
    28 Posts
    16k Views
    M
    [quote author="Volker" date="1312234572"]Sorry, I did not keep the files for that long.[/quote] It's okay, I think I might've found something else I can do. Than you, though!
  • [Solved]Qt and FreeBSD

    8
    0 Votes
    8 Posts
    8k Views
    EddyE
    You're welcome. I don't know how to set environment variables in freebsd to change the path variable, but your solution is fine too. ;) Have fun with Qt!