Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • 0 Votes
    7 Posts
    3k Views
    F
    By the way, if you will hit some limit (maybe an embedded device) you can store in a ini file names or paths to reach and load other specific ini files. But as stated in this thread, you will never hit the ini file size unles you use it in an improper way (e.g., storing large strings as user data).
  • [Solved] Not all the text in my application is translated.

    14
    0 Votes
    14 Posts
    7k Views
    S
    I get the same problem but I can't find the solution ? please tell me how you resolved it ? the ts file doesn't generated absolutely @ Project MESSAGE: C:/Qt/4.7.4/mkspecs/features/default_post.prf(5):Function 'system' is not implemented C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not implemented C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not implemented C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not implemented C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not implemented C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not implemented C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not implemented C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not implemented C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not implemented This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. @
  • Send large data via UDP / Split QByteArry by size?

    6
    0 Votes
    6 Posts
    10k Views
    A
    Actually, in principle UDP is much more suitable for this application. You don't want to halt a whole video stream just because you missed a single frame. However, it does take some work to get it to work... On a sidenote: it looks like you want to send an uncompressed stream of images. If we add network overhead to your image size, you are trying to send about 1MB per frame. To make that into streaming video, you end up with about 24MB/s raw network speed. I hope you realize you need a Gbit network to get that throughput? 100Mbit is not enough for such a data rate.
  • [closed] ItemDelegates,TreeView,And Multi-Line Text

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    EddyE
    Duplicate from "this thread":http://developer.qt.nokia.com/forums/viewthread/12167/. I'm closing it.
  • QDir delete all files function?

    20
    0 Votes
    20 Posts
    22k Views
    sierdzioS
    Nice, thanks!
  • ItemDelegates,TreeView,And Multi-Line Text

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Can't make Connection Correctly in Qt Designer

    11
    0 Votes
    11 Posts
    4k Views
    A
    Thanks! I got it to work! I knew there was something that wasn't right. I'll remember that checkable problem.
  • Qt4.6.2 crashing after 'simpleShaderProg' fails to compile over ssh

    2
    0 Votes
    2 Posts
    3k Views
    D
    A bare-bones example snippet. @void TestOGLWidget::paintEvent(QPaintEvent* event) { QPainter p; p.begin(this); p.beginNativePainting(); makeCurrent(); glClearColor( 0, 0, 0.1f, 0.0 ); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glColor3f(.9f, .7f, .7f); glBegin(GL_QUADS); glVertex2i(5, 200); glVertex2i(200, 200); glVertex2i(200, 5); glVertex2i(5, 5); glEnd(); p.drawText(10, 30, "Test 111111"); p.endNativePainting(); p.end(); }@ TestOGLWidget inherits from QGLWidget. Over ssh p.drawText(10, 30, "Test 111111"); doesn't render and we get the following warnings : bq. Vertex shader for simpleShaderProg (MainVertexShader & PositionOnlyVertexShader) failed to compile Fragment shader for simpleShaderProg (MainFragmentShader & ShockingPinkSrcFragmentShader) failed to compile Errors linking simple shader: "" Vertex shader for blitShaderProg (MainWithTexCoordsVertexShader & UntransformedPositionVertexShader) failed to compile Fragment shader for blitShaderProg (MainFragmentShader & ImageSrcFragmentShader) failed to compile Errors linking blit shader: ""
  • QFileDialog very slow with GTK3

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Can't set ScrollBar in QScrollArea

    3
    0 Votes
    3 Posts
    4k Views
    L
    [quote author="Gerolf" date="1322777479"]why don't you use a table view and a delegate for the editing?[/quote] Oooh great Gerolf, I've never thought about it ! Thanks for your answer ! But for a better explanation, the last block is not implemented, I replace the loop : @/* Loop for Tx Display Area Layout */ for(int indexLayout = 0; indexLayout < TX_DISPLAY_NUMBER; indexLayout++){ tx_ScrollAreaLayout->addWidget(tx_Label[indexLayout] , indexLayout+1 , 0, Qt::AlignLeft); tx_ScrollAreaLayout->addWidget(tx_Channel[indexLayout] , indexLayout+1 , 1, Qt::AlignLeft); tx_ScrollAreaLayout->addWidget(tx_SDI[indexLayout] , indexLayout+1 , 2, Qt::AlignLeft); tx_ScrollAreaLayout->addWidget(tx_Data[indexLayout] , indexLayout+1 , 3, Qt::AlignLeft); tx_ScrollAreaLayout->addWidget(tx_SSM[indexLayout] , indexLayout+1 , 4, Qt::AlignLeft); tx_ScrollAreaLayout->addWidget(tx_Parity[indexLayout] , indexLayout+1 , 5, Qt::AlignLeft); tx_ScrollAreaLayout->addWidget(tx_Status[indexLayout] , indexLayout+1 , 6, Qt::AlignLeft); }@ by the loop : @for(int indexLayout = 0; indexLayout < TX_DISPLAY_NUMBER; indexLayout++){ txDisplayArea->setWidget(tx_Label[indexLayout]); txDisplayArea->setWidget(tx_Channel[indexLayout]); txDisplayArea->setWidget(tx_SDI[indexLayout]); txDisplayArea->setWidget(tx_Data[indexLayout]); txDisplayArea->setWidget(tx_SSM[indexLayout]); txDisplayArea->setWidget(tx_Parity[indexLayout]); txDisplayArea->setWidget(tx_Status[indexLayout]); }@ but each loop doesn't make what I want : set the scroll bar So I'll try with QTableView, I think this is the best way to realize what I want! Thanks a lot !
  • How QGraphicsTextItem can be not sized during scaling of QGraphicView

    3
    0 Votes
    3 Posts
    7k Views
    A
    Did you try the QGraphicsItem::ItemIgnoresTransformations flag?
  • QRegExp not supporting \n back-references in Lookaheads?

    2
    0 Votes
    2 Posts
    2k Views
    A
    QRegExp is indeed rather limited. I don't know if this issue you run into is a (known) limitation (can't find it in de docs with a quick scan). However, I do know that this issue will be addressed in Qt 5, as the regexp engine will be replaced by something a bit more standard, featured and performant.
  • How can we know the polygon contains many pixels?

    7
    0 Votes
    7 Posts
    3k Views
    A
    The fact that Qt can fill your polygon, does not mean that it knows how many pixels are red. Filling doesn't work that way. You could of course paint your polygon into a QImage, and can the image line by line to count the number of colored pixels. Not very efficient, but perhaps enough for your goals?
  • How can I open an existing Sqlite database?

    3
    0 Votes
    3 Posts
    11k Views
    G
    @ db.setDatabaseName("data.sqlite"); @ searches in the current working directory, if that's wrong, give an absolute path as the argument.
  • Making a simpler FancyTabBar (like QtCreator uses)

    2
    0 Votes
    2 Posts
    3k Views
    G
    Bascially, there's a QStackedLayout (m_modesStack if I recall correctly) which holds the widgets corresponding to the selected icon (aka mode).
  • [SOLVED] Crash in QRegExp::setPattern - Access violation

    8
    0 Votes
    8 Posts
    4k Views
    G
    You're welcome. Glad to know it works now. You might add "[Solved]" to the topic (just hit the edit button of the very first post in the thread and adjust the title).
  • QString to LPCTSTR conversion

    5
    0 Votes
    5 Posts
    13k Views
    G
    If it is a pure in parameter, you can try: @ void fooSub(LPSTSTR X); // this is our function :-) foo() { QString text; if(sizeof(TCHAR) == 1) fooSub((LPCSTR)text.toLocal8Bit().constData()); // here you have to check, how to convert, you could also use utf8(), ... else fooSub((LPCWSTR)text.utf16()); } @
  • What is qt equalient of normal win32 window

    7
    0 Votes
    7 Posts
    4k Views
    G
    [quote author="Ashish Mittal" date="1322728419"]Hi, Morever, if I will use getDC() function of QWidet to pass DC to some other app of QWidet to draw on widget, can we use same code for Linux also, since it is wriiten like this function is not portable. If not then what could be the other alternative.? [/quote] If you use stuff like getDC, winID etc, the code is not portable. This is platform specific stuff and must be implemented for each platform using #if