Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • I dont find Application option in Create project Dialog

    7
    0 Votes
    7 Posts
    2k Views
    S
    Hi, I dont find as given in the document. I am using the following version VS 2005 , Qt Creator 2.6.1 and Qt 4.8.4 library. Please help me to configure in VS 2005 as well in Qt Creator. Please help , Awaiting your reply.
  • QGraphicsView and drawing pixel outline

    1
    0 Votes
    1 Posts
    819 Views
    No one has replied
  • Clickable thumbnails in QLabel or any alternative

    2
    0 Votes
    2 Posts
    1k Views
    L
    In my opinion it would be better to use "QPushButtons":http://qt-project.org/doc/qt-4.8/qpushbutton.html ordered in a layout such as "QGridLayout":http://qt-project.org/doc/qt-4.8/qgridlayout.html and a "QSignalMapper":http://qt-project.org/doc/qt-4.8/qsignalmapper.html to identify signals and handle buttons.
  • [solved]Strange widget positioning within a QToolBar

    10
    0 Votes
    10 Posts
    5k Views
    J
    That solved it! Thanks again.
  • How to display multiple images on MainWindow??

    14
    0 Votes
    14 Posts
    15k Views
    T
    Thanks for the correction, it works. [quote author="VRonin" date="1357663085"]ok, I think i spotted the problem. @tempFileName += fileInfo.fileName();@ should become @tempFileName = fileInfo.fileName();@ You are just concatenating the filenames and the QImage constructor just uses the first one[/quote]
  • 0 Votes
    5 Posts
    1k Views
    A
    ... or you can add timer and update progress bar value on timeout event via signal or setValue(value)...
  • Qwt 6.0.2 on Mac OS X

    6
    0 Votes
    6 Posts
    3k Views
    mrdebugM
    I don't know. I haven't obtained errors with 6.1. Are you sure you haven't run make install with a old version?
  • Text edit cursor behaves strangely

    4
    0 Votes
    4 Posts
    3k Views
    T
    Do you have "-- COMMAND --" or something in the lower right corner? That would indicate vi mode... I tend to just disable the vi plugin to make sure I never end up in it;-)
  • Maintaining a consistent width in QBoxLayout

    2
    0 Votes
    2 Posts
    872 Views
    P
    Ideas, anyone?
  • Invalid Socket 0 and type 'read' and disabling

    3
    0 Votes
    3 Posts
    5k Views
    D
    thanks this helped me to think...
  • [Solved] QTableWidget padding

    2
    0 Votes
    2 Posts
    23k Views
    Chris KawaC
    Well, maybe check if you're setting the style on right widget. I just checked setting the padding and it "just works". With code like this: @ ui->tableWidget->setStyleSheet("QTableWidget::item { padding: 0px }"); ui->tableWidget_2->setStyleSheet("QTableWidget::item { padding: 10px }"); @ i get !http://img854.imageshack.us/img854/7120/tablepadding.jpg(table padding)!
  • Qt5 QFileDialog is leaking memory?

    13
    0 Votes
    13 Posts
    7k Views
    U
    Well, I get the memory consumption increase exactly with the static method. And there is nothing to call deleteLater on unfortunately.
  • Get the size of Data pointed by a list of pointers

    6
    0 Votes
    6 Posts
    3k Views
    M
    [quote author="ahmed kato" date="1357672414"]@VRonin: Thank you, it worked for me I am using C style because this is not the original code, I am trying to proof a concept where char * is a must.[/quote] Keep in mind strlen() only gives you the number of non-NULL char's before the first NULL char. That's fine if you know for sure that all char-pointers in your QList will point to memory containing a NULL-terminated string. In any other case using strlen() is wrong - it can even be dangerous! (I say this because you originally asked for "the size of Data", not for "the length of a the String")
  • QIcon; how to change the state and mode?

    5
    0 Votes
    5 Posts
    11k Views
    G
    For the tool button you must use "On" and "Off" states to show checked propertie, here is an example: @ toolButton = new QToolButton; toolButton->setCheckable(true); QIcon qIcon; qIcon.addFile(":/Icons/images/icon_off.png",QSize(32,32),QIcon::Normal,QIcon::On); qIcon.addFile(":/Icons/images/icon_on.png",QSize(32,32),QIcon::Normal,QIcon::Off); toolButton->setIcon(qIcon); @ Hope this help you.
  • GUI Button Deactivation

    5
    0 Votes
    5 Posts
    2k Views
    S
    Can somebody help me?
  • QAbstractSpinBox documented poorly

    5
    0 Votes
    5 Posts
    2k Views
    JKSHJ
    [quote author="Mystery Keeper" date="1357656763"]Thank you, tilsitt. That explains a lot. I think that should be added to (offline) documentation as well.[/quote]I think that knowledge is only relevant to people who maintain/develop Qt itself, and people who're interested in studying Qt's internals. People who use Qt to write apps shouldn't need to know that Qt uses the D-pointer pattern internally. They shouldn't need to know that QAbstractSpinBoxPrivate even exists -- they should be able to do everything they could possibly need via QAbstractSpinBox itself. The offline docs are aimed at helping people use Qt, so I think info about D-pointers shouldn't be in them. I do agree that the offline docs needs polishing though, to improve clarity on how to use those public classes. Like sierdzio said, do file a bug report; Qt's maintainers don't visit these forums much, so the bug tracker makes it more likely for them to see your request.
  • [SOLVED]How to remove a layout from a QWidget?

    6
    0 Votes
    6 Posts
    20k Views
    JKSHJ
    [quote author="b1gsnak3" date="1357657479"]Is it because I use the same objects in each widget?[/quote]You can't share a widget between different layouts/widgets. If you add a widget to one layout, then add it to another layout, it will be removed from the first layout. So, to expand on leon.anavi's answer: Try moving your widgets to a new layout, delete the old layout, then apply the new layout to the parent widget.
  • Solving a problem

    2
    0 Votes
    2 Posts
    916 Views
    M
    If you edit the very first post in your thread, you can edit the title of the entire thread too. Just prepend the text "[Solved]" and that's it.
  • [Solved]Problem using QSqlTableModel with QOCI

    3
    0 Votes
    3 Posts
    1k Views
    B
    Thanks for replying so fast. This is how I make the select: @QSqlTableModel *model2 = new QSqlTableModel(0,db); model2->setTable("INOPTI_TOPOLOGY"); model2->select(); ui->tabla->setModel(model2); ui->tabla->show();@ It's very strange, finally I had to use a QSqlQueryModel (that works perfectly), but it's more limited than QSqlTableModel. I'll see what I get from lastError. Thank you!!
  • Qt5 Visual Studio 2012 Add-In - Doesn't recongize Qt5

    4
    0 Votes
    4 Posts
    4k Views
    U
    Well, obviously, you need to have Qt compiled with MSVC2012 compiler to compile projects with it. Or get MSVC2012... You should also know that VS2012 compilation is likely to produce wrongly named lib files, putting an extra 5 after the name of each file, renaming the files to remove the trailing 5 fixes that. As for the headers, there has been some rearranging, make sure the include folder of Qt5 is into the project properties - C++ - general - additional include directories, the add on should add those, but if not, you should add manually. Id you still get an error trying to locate some headers, go and search for them in the include folder to see if they aren't moved to some sub-folder.