Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Is QtConcurrent::run a mature feature, new or obsolete?

    4
    0 Votes
    4 Posts
    5k Views
    G
    Methods declared under slots section can be used like ordinary methods. In fact, from C++'s point of view they are not distinguishable from non-slot methods. It's just needed for the moc run, to have it generate the necessary glue code for signal/slot connections. So this does not cure the errors. Maybe you can make a simple test project, just the necessary code to reproduce the error, a method with just a dummy implementation. Without some code snippets, it's hard to tell what's going wrong here.
  • QFontDatabase::addApplicationFont problem

    4
    0 Votes
    4 Posts
    3k Views
    D
    offtopic I'm not sure it's useful to ask an user more details about his problem... 9 months after his original message.
  • Qt Creator debugger issue

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    7 Posts
    6k Views
    P
    [quote author="dxwang" date="1312182018"]I am sorry, I still don’t find that which function can set line spacing in QFont. can someone help me .[/quote] Did you find the answer. I am searching something similar ?
  • Qt Creator 2.4.0 Intel Compiler Error Parsing under Windows

    4
    0 Votes
    4 Posts
    3k Views
    T
    I appreciate your posting, it is just that I wanted to point out what needs to be done to get this into our codebase. I don't want people telling me "there is a patch on devnet for ages, so why is that not in Qt Creator x.y.z" :-)
  • [SOLVED] Drag and Drop problems with custom build tab widget

    6
    0 Votes
    6 Posts
    3k Views
    N
    It is, and I've updated the title accordingly.
  • Starting of proramming an IDE

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Is their any special control to display static image?

    2
    0 Votes
    2 Posts
    3k Views
    L
    "QLabel":http://developer.qt.nokia.com/doc/qt-4.8/qlabel.html [quote]QLabel is used for displaying text or an image. No user interaction functionality is provided. The visual appearance of the label can be configured in various ways, and it can be used for specifying a focus mnemonic key for another widget.[/quote]
  • QsqlTableModel/QtableView Event Filter Capture

    3
    0 Votes
    3 Posts
    6k Views
    N
    First You have to do installEventFilter On the widget to get the events ftom widget.
  • Bundling Qt frameworks with application with a .bundle extension ?

    6
    0 Votes
    6 Posts
    3k Views
    C
    I found a solution. I was able to point to the correct libraries in the make file before building the .bundle.
  • QSettings - how to clear the error?

    8
    0 Votes
    8 Posts
    3k Views
    K
    [quote author="Lukas Geyer" date="1326190237"]It looks like QSettings doesn't reset the status (which might be a good thing or a bad thing, depends), but there should be a way to reset it on demand (your use case is a perfect one). Do you mind filing a bug report / feature request?[/quote] https://bugreports.qt.nokia.com/browse/QTBUG-23857 -Karthik
  • 0 Votes
    3 Posts
    2k Views
    R
    QString::fromUtf8 did the trick. much thanks.
  • How to use QWidget from a class "B" in QStackedWidget in class "A"

    5
    0 Votes
    5 Posts
    3k Views
    S
    Oo...you just need read some book about OOP. @ #include "B.h" class A : public QWidget { private: //First impl if you want to know about b all time; B *b; //or B b; -- if you don't want to dynamically create instance of B; QStackedLayout *stack; //your stack public: A() : b(new B()), stack(new QStackedLayout(this)) {} void foo() { stack->addWidget(b); //or second impl if you don't want to know about b all time stack->addWidget(new B()); } }; @
  • 0 Votes
    6 Posts
    5k Views
    K
    Thank you for the feedback. I updated my answer. Now that you solved the problem you can add [Solved] in the beggining of the title of the question.
  • ScrollAreaWidgetContents not available when scroll area declared in code

    2
    0 Votes
    2 Posts
    3k Views
    R
    Hi. It's because QScrollArea didn't have layout by default. You must set it by yourself. Like this: @QScrollArea *sarea = new QScrollArea(); QVBoxLayout *layout = new QVBoxLayout; layout->addWidget(new QPushButton("Hi")); sarea->setLayout(layout);@ So, program is crashed because you trying to use uncreated pointer.
  • Slot executions problems in a new thread

    13
    0 Votes
    13 Posts
    4k Views
    G
    [quote author="favoritas37" date="1327332502"]Sorry Volker, i mentioned it because i haven't noticed that the base class already inherits from QObject. I wouldn't suggest to inherit twice from QObject. [/quote] No problem, everyone overlooks something now and then :) I just wanted to make sure that another potential trouble maker does sneak in :)
  • Detecting lines and/or colors on an SVG (or other vector graphics) file

    3
    0 Votes
    3 Posts
    2k Views
    M
    Thanks for the answer basil, I almost forgot you could open the SVG file with a text editor and look at the XML code! I'm working on the application right now and reading through the Qt graphics framework docs, I'll try extracting and using the path coordinate numbers as soon as I'm ready. I noticed the SVG-related classes (like QGraphicsSvgItem) have some interesting functions like setting/getting the element's XML ID which could be helpful! I think i should have done a little more research before making a new thread :) Will report back here if it works or not, thanks again.
  • How to build with static link using qt 4.7.4 for desktop based exe

    20
    0 Votes
    20 Posts
    13k Views
    P
    And yes now need to link to the latest qmake.exe
  • Buffer Overrun using QLibrary!!!!

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    G
    Closed. See Lukas link for the thread to continue in.
  • How can we set linespacing in Qtextedit?

    3
    0 Votes
    3 Posts
    3k Views
    P
    [quote author="koahnig" date="1327309310"]Did you check out "lineWidth":http://developer.qt.nokia.com/doc/qt-4.8/qframe.html#lineWidth-prop ?[/quote] but How can it will work with Qtextedit? I think line spacing is different from line width.